package org.fujene.structure;

/**
 * 定数一覧です。
 */
public class Constants{
	// Socket通信で用いるポート
	public static final int INDEX_PORT = 45500;
	public static final int SEARCH_PORT = 45501;
	public static final int PEER_PORT = 45600;

	// メモリブロックタイプ数
	public static final int MEMORY_TYPE_KINDS = 6;

	public static final int MEMORY_TYPE_DICT = 0;
	public static final int MEMORY_TYPE_INVINDEX = 1;
	// public static final int MEMORY_TYPE_DOCLIST = 2;
	public static final int MEMORY_TYPE_CONTENTS = 2;
	public static final int MEMORY_TYPE_SKIPPTR = 3;
	public static final int MEMORY_TYPE_SKIPPTRCONT = 4;
	public static final int MEMORY_TYPE_PURECONTENT = 5;

	// スキップポインタ頻度
	public static final int SKIPPTR_INTERVAL = 6;

	// バイト列長さ
	public static final int BYTE_LOCALPTR = 3;
	public static final int BYTE_BLOCKPTR = 3;
	public static final int BYTE_RELATIVEBLOCKPTR = 1;
	public static final int BYTE_GLOBALPTR = 6;
	public static final int BYTE_RELATIVEPTR = 4;
	public static final int BYTE_STRLEN = 2;
	public static final int BYTE_CONTENTSTRLEN = 3;
	public static final int BYTE_TERMFREQ = 2;
	public static final int BYTE_DOCFREQ = 3;
	public static final int BYTE_INVINDEXDIFF = 5;

	// ファイル内バイト列長さ
	public static final int FILE_HEADERSIZE = 2;
	public static final int FILE_BODYSIZE = 2;

	// バージョン
	public static final int FINALVER = 35;

	public static final LookupPointer EMPTY_PTR = new LookupPointer();
	public static final LookupPointer EMPTY_RELATIVE_PTR = new LookupPointer(-128, -1);	
	public static final ExtendQueue EMPTY_QUEUE = new ExtendQueue(new String[0], new String[0], Long.MIN_VALUE);
	
	public static final String DELETED = "$$$ DELETED";
}
